<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<head>
		<title>登录</title>
		<link rel="shortcut icon" href="img/首页/icon.ico" />
		<script type="text/javascript" src="js/jquery-1.12.4.js"></script>
		
	</head>
	<body>
		<link rel="stylesheet" type="text/css" href="css/短信登录.css" />
	<body>

	
		<div class="yetou">
			<p><img src="./img/登录/logo.png" width="292px" height="46px" alt=""></p>
		</div>
		<div id="zong">
		<div id="a">
			<div class="a2">
				<div>
					<img src="img/登录/20190624登录页-1c6c5e.jpg" class="a3">
				</div>
				<div class="a4">
					<ul class="a5">
						<li>
							<a href="Denglu.jsp" target="_self">账号登录</a>
						</li>
						<li>|</li>
						<li>
							<a>短信注册</a>
						</li>
					</ul>
					<div class="c4">
			
			<form action="Zhuce" method="post">
				<script type="text/javascript">
				function sjs(){
					// 获取一个[0,1) 的随机数
							var randomNum = Math.random()			
						//获取一个固定的4位数 
							var checkCode = randomNum*9000
								checkCode +=1000;
								
							alert(parseInt(checkCode));
							
								
				}
				
					$(function(){
					$("#phone1").blur(function(){
						var denglu=document.getElementById("phone1").value;
						var ss=/^1\d{10}$/;
						var sss=ss.test(denglu);
						if(sss){

							var s=document.getElementById("yq").innerHTML=" ";
						}else{

							var s=document.getElementById("yq").innerHTML="手机号或者邮箱格式错误";
						}
						
					})
					})
				</script>
				<input id="phone1" type="text" placeholder="手机号码" name="iphone"/><span id="yq"></span>
				<input id="pwd1" type="text" placeholder="图片验证码" /><img src="img/登录/captcha.jpg" id="tupian1">
				<input id="shouji1" type="text" placeholder="手机验证码" /><span id="yy"></span>
				<input id="huoqu1" type="button" value="获取验证码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;" onclick="sjs()">
				<input id="denglu1" type="submit" value="立即注册"/>
			</form>
		</div>
					<ul class="a7">
						<li></li>
						<li>其他登录方式</li>
						<li></li>
					</ul>
					<img src="img/登录/zhifubao.png"><img src="img/登录/qq.png"><img src="img/登录/weixin.png">
				</div>
			</div>
		</div>
		</div>

	</body>
</html>